// 实体类型
export interface Equipment {
    equipmentId: number;
    equipmentName: string;
    equipmentType: string;
    status: string;
    createTime: string;
    updateTime: string;
    image: string;
}


// 分页请求数据
export interface PageEquipment {
    equipmentId?: number | null;
    equipmentName?: string;
    equipmentType?: string;
    status?: string;
    page: number;
    pageSize: number;
}

// 分页请求响应数据
interface PageRespInfo {
    total: number;
    records: Equipment[];
}

// 分页请求响应
export interface PageResp {
    code: number;
    message: string;
    data: PageRespInfo;
}

// 增加或者删除表单类型
export interface AddAndEditEquipment {
    equipmentId: number;
    equipmentName: string;
    equipmentType: string;
    status: string;
    image: string;
}

// 增删改响应
export interface AddOrEditOrDelResp {
    code: number;
    message?: string;
    data?: object;
}

// 获取设备响应
export interface GetEquipmentResp {
    code: number;
    message: string;
    data: Equipment;
}
